Optimal. Leaf size=36 \[ \frac{2 \tan (x)}{3 a \sqrt{a \sec ^2(x)}}+\frac{\tan (x)}{3 \left (a \sec ^2(x)\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0182093, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {4122, 192, 191} \[ \frac{2 \tan (x)}{3 a \sqrt{a \sec ^2(x)}}+\frac{\tan (x)}{3 \left (a \sec ^2(x)\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4122
Rule 192
Rule 191
Rubi steps
\begin{align*} \int \frac{1}{\left (a \sec ^2(x)\right )^{3/2}} \, dx &=a \operatorname{Subst}\left (\int \frac{1}{\left (a+a x^2\right )^{5/2}} \, dx,x,\tan (x)\right )\\ &=\frac{\tan (x)}{3 \left (a \sec ^2(x)\right )^{3/2}}+\frac{2}{3} \operatorname{Subst}\left (\int \frac{1}{\left (a+a x^2\right )^{3/2}} \, dx,x,\tan (x)\right )\\ &=\frac{\tan (x)}{3 \left (a \sec ^2(x)\right )^{3/2}}+\frac{2 \tan (x)}{3 a \sqrt{a \sec ^2(x)}}\\ \end{align*}
Mathematica [A] time = 0.0178713, size = 27, normalized size = 0.75 \[ \frac{(9 \sin (x)+\sin (3 x)) \sec ^3(x)}{12 \left (a \sec ^2(x)\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.057, size = 23, normalized size = 0.6 \begin{align*}{\frac{\sin \left ( x \right ) \left ( \left ( \cos \left ( x \right ) \right ) ^{2}+2 \right ) }{3\, \left ( \cos \left ( x \right ) \right ) ^{3}} \left ({\frac{a}{ \left ( \cos \left ( x \right ) \right ) ^{2}}} \right ) ^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.94539, size = 19, normalized size = 0.53 \begin{align*} \frac{\sin \left (3 \, x\right ) + 9 \, \sin \left (x\right )}{12 \, a^{\frac{3}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.4321, size = 74, normalized size = 2.06 \begin{align*} \frac{{\left (\cos \left (x\right )^{3} + 2 \, \cos \left (x\right )\right )} \sqrt{\frac{a}{\cos \left (x\right )^{2}}} \sin \left (x\right )}{3 \, a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.48685, size = 37, normalized size = 1.03 \begin{align*} \frac{2 \tan ^{3}{\left (x \right )}}{3 a^{\frac{3}{2}} \left (\sec ^{2}{\left (x \right )}\right )^{\frac{3}{2}}} + \frac{\tan{\left (x \right )}}{a^{\frac{3}{2}} \left (\sec ^{2}{\left (x \right )}\right )^{\frac{3}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.37879, size = 78, normalized size = 2.17 \begin{align*} \frac{2 \,{\left (3 \,{\left (\frac{1}{\tan \left (\frac{1}{2} \, x\right )} + \tan \left (\frac{1}{2} \, x\right )\right )}^{2} \mathrm{sgn}\left (-\tan \left (\frac{1}{2} \, x\right )^{2} + 1\right ) - 4 \, \mathrm{sgn}\left (-\tan \left (\frac{1}{2} \, x\right )^{2} + 1\right )\right )}}{3 \, a^{\frac{3}{2}}{\left (\frac{1}{\tan \left (\frac{1}{2} \, x\right )} + \tan \left (\frac{1}{2} \, x\right )\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]